/**
 * @ngInject
 */
function onConfig($stateProvider, $urlRouterProvider, $locationProvider, $translateProvider, translations_eng, $httpProvider) {
    $locationProvider.html5Mode({
        enabled: true,
        requireBase: false
    });

    $translateProvider.translations('en', translations_eng);
    $translateProvider.preferredLanguage('en');
    $translateProvider.useSanitizeValueStrategy('escape');

    $httpProvider.interceptors.push('httpRequestInterceptor');

    $stateProvider.state('Employees', {
        url: '/',
        templateUrl: 'employees.html',
        controller: 'EmployeesCtrl as vm'
    });
    $stateProvider.state('About', {
        url: '/About',
        templateUrl: 'about.html',
        controller: 'AboutCtrl as vm'
    });
    $stateProvider.state('Contact', {
        url: '/Contact',
        templateUrl: 'contact.html',
        controller: 'ContactCtrl as vm'
    });
    /* Add New States Above */
    $urlRouterProvider.otherwise('/');
}

module.exports = onConfig;
